@charset "utf-8";

/* ==============================================
   전역 스타일 및 레이아웃
   ============================================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

#bo_list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* ==============================================
   게시판 헤더 및 버튼
   ============================================== */
.bo_list_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.bo_total_info {
    font-size: 14px;
    color: #6c757d;
}

.bo_total_info span:first-child {
    font-weight: bold;
    color: #343a40;
    margin-right: 8px;
}

.bo_btn_top {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bo_btn_top a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.btn_icon_rss {
    background-color: #ff9800;
    color: #fff;
}
.btn_icon_rss:hover { background-color: #e68a00; }

.btn_admin {
    background-color: #6c757d;
    color: #fff;
}
.btn_admin:hover { background-color: #5a6268; }

.btn_write {
    background-color: #007bff;
    color: #fff;
}
.btn_write:hover { background-color: #0056b3; }

/* ==============================================
   게시판 카테고리
   ============================================== */
#bo_cate {
    margin-bottom: 24px;
}

.bo_cate_ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bo_cate_ul a {
    display: block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    color: #495057;
    background-color: #e9ecef;
    transition: all 0.2s;
}

.bo_cate_ul a:hover,
#bo_cate_on {
    background-color: #007bff;
    color: #fff;
}

/* ==============================================
   카드 리스트
   ============================================== */
.bo_card_list {
    display: grid;
    gap: 16px;
}

.bo_card {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.bo_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.bo_notice {
    border: 2px solid #007bff;
    background-color: #f8faff;
}
.bo_notice .card_title a {
    font-weight: 600;
}

.card_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f2f5;
    padding-bottom: 12px;
}

.card_meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #6c757d;
}

.card_author {
    font-weight: 500;
}

.card_body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card_title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    flex-grow: 1;
}

.card_title a {
    text-decoration: none;
    color: #212529;
    transition: color 0.2s;
}

.card_title a:hover {
    color: #007bff;
}

.card_notice_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 12px;
    vertical-align: middle;
}

.card_comment_count {
    font-size: 12px;
    color: #007bff;
    margin-left: 8px;
}

.card_stats {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #888;
}

.card_stats i {
    margin-right: 4px;
}

.empty_card_list {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    background-color: #fff;
    border-radius: 12px;
}

/* ==============================================
   하단 버튼 및 검색
   ============================================== */
.bo_fx {
    margin: 24px 0;
    display: flex;
    justify-content: flex-end;
}

.btn_bo_user {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.btn_action {
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
}

.btn_action_delete {
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
}

.btn_list, .btn_write_bottom {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.btn_list {
    background-color: #f8f9fa;
    color: #212529;
    border: 1px solid #dee2e6;
}

.btn_write_bottom {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
}

#bo_sch {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

#bo_sch form {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 600px;
}

#bo_sch select, .sch_input {
    height: 40px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 14px;
}

.sch_input {
    flex-grow: 1;
}

.sch_btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0 16px;
    border-radius: 6px;
    cursor: pointer;
}
.sch_btn:hover { background-color: #0056b3; }

/* ==============================================
   반응형
   ============================================== */
@media (max-width: 768px) {
    .bo_list_header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .bo_btn_top { width: 100%; justify-content: flex-start; }
    .bo_fx { justify-content: center; }
    .bo_card { padding: 16px; }
    .card_header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .card_body { flex-direction: column; align-items: flex-start; gap: 8px; }
    .card_title { font-size: 1rem; }
    .card_stats { margin-top: 8px; }
}

@media (max-width: 576px) {
    .hidden-xs { display: none !important; }
    #bo_sch form { flex-direction: column; }
    #bo_sch select { width: 100%; }
}